<template>
  <div id="app">
      <el-container>
      <!-- 头部 -->
      <el-header style="height: 100px">
        <span>报修后台管理系统</span>
      </el-header>
      <!-- 页面主体区域 -->
      <el-container>
        <!-- 侧边栏 -->
        <el-aside width="300px">
          <el-menu
            class="el-menu-vertical-demo"
            background-color="#5d6371"
            text-color="#eee"
            active-text-color="#1391E3"
            router
          >
            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-menu"></i>
                <span>维修订单管理</span>
              </template>
              <el-menu-item index="/show/">订单详情</el-menu-item>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-setting"></i>
                <span>维修师傅信息管理</span>
              </template>
              <el-menu-item index="/Worker/">师傅信息详情</el-menu-item>
            </el-submenu>
          </el-menu>
        </el-aside>
        <!-- 主体区域 -->
        <el-main>
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {
    };
  },
};
</script>

<style lang="less" scoped>
.el-container {
  height: 100%;
  .el-header {
    background-color: #5d6371;
    color: #eee;
    font-size: 30px;
    text-align: center;
    line-height: 100px;
  }
  .el-aside {
    background-color: #5d6371;
    .toggle_btn {
      background-color: pink;
      color: #fff;
      font-size: 10px;
      line-height: 24px;
      text-align: center;
      letter-spacing: 2px;
      cursor: pointer;
    }
    h5 {
      text-align: center;
      margin: 10px 0;
      color: #eee;
      font-family: 幼圆;
      font-size: 30px;
    }
    .el-menu {
      // 清楚border
      border: none;
    }
  }
  .el-main {
    background-color: #eee;
  }
}
</style>
